# $Id: PKGBUILD 184237 2013-05-04 19:06:47Z foutrelis $
# Maintainer:
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

pkgname=smplayer-themes
pkgver=20120919
pkgrel=3
pkgdesc="Themes for smplayer"
arch=('any')
url="http://smplayer.sourceforge.net/"
license=('GPL')
depends=('smplayer')
makedepends=('optipng')
source=(http://downloads.sourceforge.net/smplayer/$pkgname-$pkgver.tar.bz2)
md5sums=('4af3433f2fc7a4b543e576fb7985eb35')

prepare() {
  cd $pkgname-$pkgver

  # Fix invalid PNG icons to work with libpng 1.6
  find -name '*.png' -exec optipng -quiet -force -fix {} +
}

package() {
  cd $pkgname-$pkgver
  make PREFIX="$pkgdir/usr" install
}
